//
//  OCHomeViewController.m
//  OCWeiBo
//
//  Created by mac on 16/3/18.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "OCHomeViewController.h"

@interface OCHomeViewController ()

@end

@implementation OCHomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
   
  
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"注册" style:UIBarButtonItemStylePlain target:self action:@selector(registerButton)];
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"登录" style:UIBarButtonItemStylePlain target:self action:@selector(loginButton)];
    
    //指定一下属性
    NSMutableDictionary *dic = [NSMutableDictionary dictionary];
    dic[NSForegroundColorAttributeName] = [UIColor orangeColor];
    
    //指定选中状态下文字的颜色
    [self.navigationItem.leftBarButtonItem setTitleTextAttributes:dic forState:UIControlStateNormal];
    [self.navigationItem.rightBarButtonItem setTitleTextAttributes:dic forState:UIControlStateNormal];
}

-(void)registerButton{
    
   
    
}

-(void)loginButton{
    
    
    
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
  
    
}



@end
